home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
netz
/
ums
/
ums-beta
/
developer
/
c
/
slib
/
umslib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-23
|
464b
|
31 lines
#include <constructor.h>
#include <proto/exec.h>
#include <proto/ums.h>
void __regargs __autoopenfail(char *);
extern LONG __UMSlibversion;
struct Library *UMSBase ;
static struct Library *LibBase;
CBMLIB_CONSTRUCTOR(OpenUMS)
{
if (UMSBase=LibBase=OpenLibrary("ums.library",__UMSlibversion)) return 0;
__autoopenfail("ums.library");
return 1;
}
CBMLIB_DESTRUCTOR(CloseUMS)
{
if (LibBase)
{
CloseLibrary (LibBase);
LibBase=UMSBase=NULL;
}
}